package 第五章重载;

//递归求n的阶乘
public class RecursionTest04 {
    public static void main(String[] args) {
        System.out.println(jc(5));
    }

    public static long jc(int i) {
        if (i == 1) {
            return 1;
        }
        return (i * jc(i - 1));
    }

}
